var express = require('express');
var router = express.Router();

var dataCtrl = require('../controllers/news.controller');//数据控制，引入这个

/*
    接口
*/
router.get('/data/:id',dataCtrl.get);
router.post('/data',dataCtrl.create);
router.put('/data/:id',dataCtrl.update);
router.delete('/data/:id',dataCtrl.remove);
router.post('/data/removes',dataCtrl.removes);
router.post('/list',dataCtrl.list);
module.exports = router;


/* GET users listing. */
// router.get('/', function(req, res, next) {
//   res.send('respond with a resource');
// });

// module.exports = router;



